package com.qf.hospital.system.service.impl;

import com.qf.hospital.system.entity.Departments;
import com.qf.hospital.system.mapper.DepartmentsMapper;
import com.qf.hospital.system.service.DepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentsServiceImpl implements DepartmentsService {

    @Autowired
    private DepartmentsMapper departmentsMapper;

    @Override
    public List<Departments> findAll() {
        return departmentsMapper.findAll();
    }
}
